﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - My ASP.NET Application</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/jquery")
    <style>
        #layout_page {
            height: 100%;
        }

        a {
            cursor: pointer;
        }
    </style>
</head>
<body>
    <div id="layout_page" data-role="page" data-theme="a">
        <div data-role="header" data-position="fixed">
            @*<a data-href="/Home/Technology/List" data-role="button" data-icon="home">首页</a>*@
            <h1>协同工作室</h1>
            @*<a href="/Home/Search" data-role="button" data-icon="search" class="ui-btn-right">搜索</a>*@
        </div>
        <div id="layout_content" style="height: 100%;" data-role="content">
            @RenderBody()
        </div>
        <div data-role="footer" data-position="fixed">
            <div id="navbar" data-role="navbar">
                <ul>
                    <li><a data-href="/Home/Technology/List">技术</a></li>
                    <li><a data-href="/Home/Team/List">团队</a></li>
                    <li><a data-href="/Home/Production/List">作品</a></li>
                    <li><a data-href="/Home/Contact/Detail?id=1">联系</a></li>
                </ul>
            </div>
        </div>
    </div>
    <script>
        $(function () {
            $("#layout_content").load("/Home/Technology/List");
            $("#layout_page").find("a").each(function () {
                $(this).click(function () {
                    $("#layout_content").load($(this).attr("data-href"));
                });
            });
        });
    </script>
    @RenderSection("scripts", required: false)
</body>
</html>
